package com.pixiv.tools;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWriter;

public class SendPrintWriterPacket {
    public static void sendFlag(HttpServletResponse resp, int var)
    {
        PrintWriter pw = null;
        try {
            pw = resp.getWriter();
            pw.write("{\"flag\":" + var +"}");
            pw.close();
        } catch (IOException e) {
            e.printStackTrace();
        }

    }
}
